/*==============================================================================
            Copyright (c) 2013 Moritz Hader, Marcel Schrder
            All Rights Reserved.

	@file  MatrixManagementUnit.h

	@brief This header provides the class-definitions used by the MatrixManagementUnit.
	General purpose of this class is to maintain a List of matrices and allow operations
	upon these. The idea is, that operations, like rotation or translation,
	wont require array, handly by the user, but instead are handled by the method in here.
   
   This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
==============================================================================*/
#ifndef _MATRIXMANAGEMENTUNIT_LIBRARY__
#define _MATRIXMANAGEMENTUNIT_LIBRARY__

#include <egl/HeimdallMath.h>

class MatrixManagementUnit{
private:
	int size;
	int index;
	H44DMatrix* matrices; //Array/List of current matrices


public:

	//Constructor
	MatrixManagementUnit();
	MatrixManagementUnit(int size);
	~MatrixManagementUnit();

	//Methods
	void AddMatrix(H44DMatrix);
	void AddMatrix();
	void GetMatrix(H44DMatrix);
	void SetMatrix(H44DMatrix);
	void DropMatrix();
	void MultiplyMatrixWith(H44DMatrix); //Mult Stack with Matrix
	void MultiplyWithMatrix(H44DMatrix); //Mult Matrix with stack
};

#endif
